importScripts('show.js','bench.js');

function progresscb(done, total) {
    postMessage({
        type: 'progress', 
        msg: done + ' / ' + total 
    });
}

var data = bench.runTests(progresscb);
postMessage({
    type: 'end', 
    data: data, 
    format: show.formatData(data)
});
